//
//  FCAppConfigModel.h
//  FCBaseKit
//
//  Created by sobey on 2020/3/19.
//  Copyright © 2020 Summer. All rights reserved.
//

#import <Foundation/Foundation.h>
@class FCAppinfoShortcuts;
NS_ASSUME_NONNULL_BEGIN

@interface FCAppConfigConfigValuesModel :NSObject
@property (nonatomic , assign) BOOL              tmSwitch;

@end
@interface FCAppConfig_video :NSObject

@property (nonatomic , copy) NSString * siteLogo;
@property (nonatomic , copy) NSString * appSiteName;
@property (nonatomic , assign) BOOL isShowThemePic;
@property (nonatomic , copy) NSString * is_more_site;
@property (nonatomic , assign) BOOL isEnableViewNum;
@property (nonatomic , assign) BOOL is_show_editor;
@property (nonatomic , assign) BOOL isLoginRequire;
@property (nonatomic , assign) BOOL isWeixinAuthorize;
@property (nonatomic , assign) BOOL isEnableLikeNum;
@property (nonatomic , assign) BOOL isNORestrictThumbs;
@property (nonatomic , copy) NSString * iosUrl;
@property (nonatomic , copy) NSString * androidUrl;
@property (nonatomic , assign) BOOL isEnableCommentNum;


@property (nonatomic , copy) NSString              * img;
/// in 内置接口 out 外置接口
@property (nonatomic , copy) NSString              * redirectType;
@property (nonatomic , copy) NSString              * iosParams;
@property (nonatomic , copy) NSString              * url;
@property (nonatomic , assign) BOOL               isRedirect;
@property (nonatomic , copy) NSString              * androidParams;

@end

@interface FCAppConfigConfig_json :NSObject
//是否隐藏
@property (nonatomic, assign) BOOL isCloseinteractiveNum;

//
///是否显示编辑 is_show_editor： true   false
@property (nonatomic, assign) BOOL is_show_editor;
/// 是否显示分类
@property (nonatomic, assign) BOOL isShowClassTag;
/// 是否显示矩阵号分类话题圈子

@property (nonatomic, assign) BOOL isShowMatrixClassTopicGroup;
/// 字段存在并且值为true代表开启，其他关闭
@property (nonatomic, assign) BOOL is_show_program;

/// 是否 加粗顶部资讯文字选择状态
@property (nonatomic, assign) BOOL plate_highlight;
/// 全局控制分享图片
@property (nonatomic, copy) NSString *shareLogo;
/// 浏览数是否显示，1 是 0 否  isEnableScanNum
@property (nonatomic , assign) BOOL isEnableScanNum;
///点赞数，浏览数，分1 是，0 否
@property (nonatomic , assign) BOOL    isEnableLikeNum;
///评论量
@property (nonatomic , assign) BOOL    isEnableCommentNum;

/// 记者
@property (nonatomic , assign) BOOL    reporterSwitch;

/// 分类
@property (nonatomic , assign) BOOL    classSwitch;
/// 短视频默认分享前缀
@property (nonatomic , copy) NSString              * share_video_title_prefix;
///定位失败默认城市
@property (nonatomic , copy) NSString              * default_city;
@property (nonatomic , assign) BOOL    editorSwitch;
@property (nonatomic , assign) BOOL                  isEnableMedia;
@property (nonatomic , copy) NSString              * siteLogo;
@property (nonatomic , copy) NSString              * appSiteName;
@property (nonatomic , copy) NSString              * mchHost;
@property (nonatomic , copy) NSString              * tmTitle;
@property (nonatomic , copy) NSString              * mchJs;
/**矩阵号图片*/
@property (nonatomic , copy) NSString              * matrixLogo;
@property (nonatomic , copy) NSString              * station_icon;
@property (nonatomic , copy) NSString              * station_pic;
@property (nonatomic , assign) BOOL              mchSwitch;
/**首页头部图片*/
@property (nonatomic , copy) NSString              * siteHomeLogo;
@property (nonatomic , assign) BOOL              matrixSwitch;
@property (nonatomic , strong) FCAppConfigConfigValuesModel              * values;
@property (nonatomic , copy) NSString              * mchTitle;
@property (nonatomic , copy) NSString              * station_name;
@property (nonatomic , copy) NSString              * userCode;
@property (nonatomic , assign) BOOL              tmSwitch;
@property (nonatomic , copy) NSString              * mchSiteCode;
@property (nonatomic , copy) NSString              * mchToken;
@property (nonatomic , copy) NSString              * mchUrl;
/// 1 经典颜色 2 清爽 3天气服务  4 日历 5 拍照 服务
@property (nonatomic , assign) NSInteger topStyle;
/*live_version*/
@property (nonatomic , copy) NSString              * live_version;
@property (nonatomic , assign) BOOL              isShowThumbsOrWatch;
@property (nonatomic , assign) BOOL              sensitivewordsSwitch;
@property (nonatomic , copy) NSString              * materialRootDirectory;
@property (nonatomic , copy) NSString              * time;
@property (nonatomic , copy) NSString              *endpoint;//访问的阿里云endpoint（域名）
@property (nonatomic , copy) NSString              * bucket;//bucket名称
@property (nonatomic , copy) NSString              * customDomain;//文件的域名
@property (nonatomic , copy) NSString              * mhUrl;
@property (nonatomic , assign) BOOL              scoreSwitch;
@property (nonatomic , assign) BOOL              materialPushSwitch;
@property (nonatomic , assign) BOOL              isNORestrictThumbs;
@property (nonatomic , copy) NSString              * androidUrl;
@property (nonatomic , assign) NSInteger   default_plate_count;//顶部导航默认展示版面数
@property (nonatomic , assign) NSInteger   fixed_plate_count;//固定前n个版面
@property (nonatomic , assign) NSInteger   default_show_plate_count;//默认选中第m个版面
@property (nonatomic , strong) NSArray *scan_white_list;//白名单
@property (nonatomic , copy) NSString              *webview_userAgent;
@property (nonatomic , copy) NSString                *saas_domain;
@property (nonatomic , copy) NSString                *access_key;
@property (nonatomic , copy) NSString                *pic_type;//zj、yj
@property (nonatomic , assign) BOOL              isPic_corner;//图片是否圆角
@property (nonatomic , copy) NSString *sub_color;
@property (nonatomic , copy) NSString *theme_color;
@property (nonatomic , copy) NSString *tag_color;
 
/** huaweiyun_OBS-华为云 1   ecloud_S3-天翼云 2*/
@property(nonatomic, assign)NSInteger cloud_type;
///  huaweiyun_OBS-华为云   ecloud_S3-天翼云
@property (nonatomic , copy) NSString *cloudCompany;
@property (nonatomic , copy) NSString *huawei_obs_access_key_id;
@property (nonatomic , copy) NSString *huawei_obs_secret_access_key;
@property (nonatomic , copy) NSString *huawei_obs_server;
@property (nonatomic , copy) NSString *huawei_obs_Bucket;
@property (nonatomic , copy) NSString *ecloud_endpoint;
@property (nonatomic , copy) NSString *ecloud_accessKeyId;
@property (nonatomic , copy) NSString *ecloud_secretAccessKey;
@property (nonatomic , copy) NSString *ecloud_Bucket;
@property (nonatomic , copy) NSString *sobeycloud_clientId;
@property (nonatomic , copy) NSString *sobeycloud_clientSecret;
@property (nonatomic , copy) NSString *sobeycloud_site;
@property (nonatomic , copy) NSString *sobeycloud_authUrl;
@property (nonatomic , copy) NSString *camera_color;//内蒙专门配置的相机颜色
@property (nonatomic , copy) NSString *top_right_icon;//右边图片
@property (nonatomic , assign) NSInteger recentDays;//电视广播的回放日期 若 0  则7 天
/**banner_show  是否显示banner  1 显示，0 不显示*/
@property (nonatomic , assign) BOOL              banner_show;
/** follow_show 是否显示已关注  1 显示，0 不显示*/
@property (nonatomic , assign) BOOL              follow_show;
@property (nonatomic , copy) NSString         * pic_proportion;
@property (nonatomic , assign) BOOL              detailShowLogo;
/** showCurTabLine 是否显示已关注  1 显示，0 不显示*/
@property (nonatomic , assign) BOOL              showCurTabLine;

@property (nonatomic , copy) NSString *ecloud_domain;

/// 是否隐藏投屏相关
@property (nonatomic , assign) BOOL projection_switch;
/// 置顶别名
@property (nonatomic , copy) NSString *top_alias;

/// 专题别名 若有值需要隐藏原本专题标签
@property (nonatomic , copy) NSString *theme_alias;
/// 视频列表是否显示  logo及名称  YES  显示
@property (nonatomic , assign) BOOL              isShowLogoAndName;
///  是否启动视频学习积分
@property (nonatomic , assign) BOOL              is_video_study;

// 是否替换马上抢  （重写了get 方法限制字数4 默认返回马上抢）
@property (nonatomic , copy) NSString *ad_custom_txt;
//视音频专辑是否隐藏左侧预览图
@property (nonatomic , assign) BOOL isShowThemePic;
//是否隐藏视频详情转发按钮
@property (nonatomic , assign) BOOL is_video_transferBtn;
//是否隐藏视频详情评论框
@property (nonatomic , assign) BOOL is_video_commentInput;
///短视频是否显示@人
@property (nonatomic , assign) BOOL isShowMention;
//资讯快捷键显示 右下角按钮
@property (nonatomic , assign) BOOL infoShortcuts;

///当展示策略 showWay = 1 需要的 展示次数： showCount （值为数字，表次数）
//@property (nonatomic , assign) NSInteger               showCount;
///跳转地址：infoShortcutsWay  (inner：内置接口；external：外置接口 外链调整）
@property (nonatomic , copy) NSString              * infoShortcutsWay;
///展示次数：showTimes （值为数字，表次数）
@property (nonatomic , assign) NSInteger               showTimes;
/// 弹框图片：infoShortIcon （值为图片地址）
@property (nonatomic , copy) NSString              * infoShortIcon;
/// 展示策略    1：有效期内展示一定的次数；2：每日展示一定的次数；3：每次打开APP都展示）
@property (nonatomic , assign) NSInteger              showWay;
/// 生效起止时间：effectiveDate （值为起止时间字符串数组，['2021-11-02','2021-11-04']）
@property (nonatomic , copy) NSArray              *  effectiveDate;
///多少秒后自动关闭弹框：
@property (nonatomic , assign) NSInteger              autoCloseTime;

@property (nonatomic , copy) NSString              *  IOSAds;//地址
@property (nonatomic , copy) NSString              *  IOSParams;// 参数
@property (nonatomic , copy) NSString              *  externalLink;//外链地址
@property (nonatomic , copy) NSString              *  hotPlateId;//热帮请求id
@property (nonatomic , copy) NSString              *  hot_top_logo;//type  10  要求加载图片

/// 举报地址取全局配置report_url
@property (nonatomic , copy) NSString              *  report_url;
 
@property (nonatomic , copy) NSString              *  topRightImage;
// h5url isNative  service_id   JSON 字符串
@property (nonatomic , copy) NSString              *  topRightUrl;

/// 顶部导航是图片还是颜色：top_nav_config: image , color
@property (nonatomic , copy) NSString              *  top_nav_config;

/// http://图片地址
@property (nonatomic , copy) NSString              *  top_nav_config_image;

@property (nonatomic , copy) NSString              *  top_nav_config_color;

/// 导航默认字体颜色和选中字体颜色
@property (nonatomic , copy) NSString              *  top_nav_font_color;

/// top_nav_font_select_color
@property (nonatomic , copy) NSString              *  top_nav_font_select_color;
/// topStyle 15  使用的配置图标
@property (nonatomic , copy) NSString              *  topNavigateIcon;

 
@property (nonatomic , copy) NSString              *  topNavigateIOSSrc;

@property (nonatomic , copy) NSString              *  topNavigateIOSParams;

@property (nonatomic , copy) NSString              *  wx_share_desc;
/** video_info_play_style : 1-横屏 2-竖屏    字段不存在默认横屏 */
@property(nonatomic, assign) NSInteger video_info_play_style;
/**热搜快捷键 跳转地址*/
@property (nonatomic , copy) NSString              *  hotIOSAds;
/**热搜快捷键 跳转参数*/
@property (nonatomic , copy) NSString              *  hotIOSParams;
@property (nonatomic , copy) NSString              *  hotExternalLink;
//external 外置接口  inner 内置接口
@property (nonatomic , copy) NSString              *  hotInfoShortcutsWay;
//草原云资讯增加ai智能工具图片配置
@property (nonatomic , copy) NSString              *  top_right_icon_ai;
@property (nonatomic , strong) FCAppConfig_video     *  serviceRedirect;
@property (nonatomic , copy) NSArray    <FCAppinfoShortcuts *> *  infoShortcutsConfig;

 
/*
顶部导航全覆盖颜色或者图片
顶部导航是图片还是颜色：top_nav_config: image , color
top_nav_config_image: http://图片地址
top_nav_config_color:  #fffff
导航默认字体颜色和选中字体颜色
top_nav_font_color:  #fffff
top_nav_font_select_color:  #fffff
*/
//@property (nonatomic , copy) NSString              *  topRightUrl;

//isNative
@end

@interface FCAppConfigData :NSObject

@property (nonatomic , assign) NSInteger              config_id;
@property (nonatomic , strong) FCAppConfigConfig_json              * config_json;
@property (nonatomic,strong) FCAppConfig_video * video_config;

@end

@interface FCAppConfigModel :NSObject

@property (nonatomic , copy) NSString              * msg;
@property (nonatomic , strong) FCAppConfigData      * data;
@property (nonatomic , assign) NSInteger           code;

@end

@interface FCAppConfigtmRules :NSObject

@property (nonatomic , copy) NSString              * name;
@property (nonatomic , copy) NSString              * pathPrefix;
@property (nonatomic , copy) NSString              * paramStr;


@end
@interface FCAppinfoShortcuts :NSObject

//@property (nonatomic , copy) NSString              * iOSAds;
@property (nonatomic , assign) NSInteger              autoCloseTime;
@property (nonatomic , copy) NSString              * id;
@property (nonatomic , copy) NSString              * androidAds;
//@property (nonatomic , copy) NSString              * iOSParams;
@property (nonatomic , copy) NSString              * infoShortIcon;
@property (nonatomic , copy) NSString              * externalLink;
@property (nonatomic , copy) NSString              * infoShortcutsWay;
@property (nonatomic , assign) NSInteger              showWay;
//@property (nonatomic , copy) NSArray<NSString *>              * effectiveDate;
@property (nonatomic , copy) NSString              * androidParams;
@property (nonatomic , strong) NSString              * IOSParams;
@property (nonatomic , copy) NSString              * IOSAds;
@property (nonatomic , assign) NSInteger              showTimes;
/// 生效起止时间：effectiveDate （值为起止时间字符串数组，['2021-11-02','2021-11-04']）
@property (nonatomic , copy) NSArray              *  effectiveDate;
 
@end

NS_ASSUME_NONNULL_END
